﻿using System.Data.Entity;

using System.Collections.Generic;
using BBICMS.Repository;
using BBICMS.Model;
using BBICMS.Model.Enums;
using System;

namespace BBICMS.Repository
{
    public class CategoriesRepository: GenericRepository<Category>, ICategoryRepository
    {
        public CategoriesRepository(DbContext context) : base(context) { }

        public IEnumerable<Category> GetCategoryByModelType(ModelType type)
        {
            return this.FindBy(c => c.ModelType == type);
        }
    }
}
